//
//  main.m
//  08-HomeWork
//
//  Created by dllo on 16/7/13.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Cloth.h"
#import "NSMutableArray+Convert.h"
int main(int argc, const char * argv[]) {
    NSMutableArray<NSString *> *arr = [NSMutableArray arrayWithObjects:@"🐵", nil];
    [arr addObject:@"20"];
// - (NSArray<NSString *> *)componentsSeparatedByString:(NSString *)separator;
    NSMutableDictionary<NSString *, NSString *> *dic = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"🙈", @"name", nil];
    [dic objectForKey:@"name"];
    Cloth *kindOf = [[Cloth alloc] init];
    NSMutableArray *arr1 = [kindOf getArray];
    NSArray *arra = [kindOf getArray];

    // 2⃣️
    {
        NSString *mString = @"hello world hao are you";
        NSArray *mArray = [mString componentsSeparatedByString:@" " ];
        NSMutableArray *mMutable = [[NSMutableArray alloc] init];
        NSEnumerator *mEnumer = [mArray reverseObjectEnumerator];
        NSString *mObjString;
        while (mObjString = [mEnumer nextObject]) {
            [mMutable addObject:mObjString];
        }
        NSLog(@"%@", mMutable);
        NSString *mNewString=[mMutable componentsJoinedByString:@" "];
        NSLog(@"%@",mNewString);
    }
    NSMutableArray *objc = [NSMutableArray arrayWithObjects:@"🐷", @"🐱", @"🐲", nil];
    [objc convert:objc];
    NSLog(@"%@", objc);
    return 0;
}
